package com.demo2do.fms.entity.supplier.trans;

import com.demo2do.core.utils.Alias;

/**
 *  运输的服务供方  资源信息 GPS品牌
 * 
 * Created by zhonghui on 2017/7/13.
 */
@Alias("GpsBrandType")
public enum GPSBrandType {

    GPS_BRAND_TYPE_ONE("01","亚加"),

    GPS_BRAND_TYPE_TWO("02","安中"),

    GPS_BRAND_TYPE_THREE("03","启明"),

    GPS_BRAND_TYPE_FOUR("04","赛格"),

    GPS_BRAND_TYPE_FIVE("05","长江通讯"),

    GPS_BRAND_TYPE_SIX("06","东电投"),

    GPS_BRAND_TYPE_SEVEN("07","智慧明"),

    GPS_BRAND_TYPE_EIGHT("08","伊爱"),
    
    GPS_BRAND_TYPE_NINE("00","其他");

    private String code;
    
    private String description;

    /**
     * @param code
     * @param description
     */
    private GPSBrandType(String code , String description) {
        this.code = code;
        this.description = description;
    }

    /**
     * 
     * @param code
     * @return
     */
    public static GPSBrandType codeOf(String code){
        for(GPSBrandType gPSBrandType : GPSBrandType.values()){
            if(gPSBrandType.getCode().equals(code)){
                return gPSBrandType;
            }
        }
        return null;
    }

    /**
     * 
     * @return the code
     */
    public String getCode() {
        return code;
    }
    /**
     * Gets description.
     *
     * @return the description
     */
    public String getDescription() {
        return description;
    }
}

